package com.yuan.pojo;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

        // 根据条件返回需要导入的配置类名称

        return new String[]{"com.yuan.config.DogConfig"};
    }
}
